import {IMenu} from "@/common/model/menu";

const menus: IMenu[] = [
  {
    id: 22,
    name: "商品管理",
    path: `/product/manage`,
    sortOrder: 1,
    isShow: 1,
    icon: "DesktopOutlined",
    routes: [
      {
        id: 223,
        name: "商品列表",
        path: `/product/manage/list`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 2223,
        name: "品牌列表",
        path: `/product/manage/brand`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 224,
        name: "品牌分类",
        path: `/product/manage/category`,
        sortOrder: 1,
        isShow: 1,
      },
    ]
  },
  {
    id: 222,
    name: "订单管理",
    path: `/order/manage`,
    sortOrder: 1,
    isShow: 1,
    icon: "DesktopOutlined",
    routes: [
      {
        id: 2223,
        name: "订单列表",
        path: `/order/manage/list`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 22223,
        name: "退货申请",
        path: `/order/manage/return/apply`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 2224,
        name: "退货原因",
        path: `/order/manage/return/reason`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 2225,
        name: "订单设置",
        path: `/order/manage/setting`,
        sortOrder: 1,
        isShow: 1,
      },
    ]
  },
  {
    id: 322,
    name: "营销管理",
    path: `/sms/manage`,
    sortOrder: 1,
    isShow: 1,
    icon: "DesktopOutlined",
    routes: [
      {
        id: 3223,
        name: "优惠券",
        path: `/sms/manage/coupon`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 22223,
        name: "秒杀活动",
        path: `/sms/manage/promotion`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 2224,
        name: "广告设置",
        path: `/sms/manage/advertise`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 2225,
        name: "首页品牌",
        path: `/sms/manage/home/brand`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 2226,
        name: "推荐专题",
        path: `/sms/manage/recommend/subject`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 2227,
        name: "推荐商品",
        path: `/sms/manage/recommend/product`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 2228,
        name: "首页新品",
        path: `/sms/manage/home/new`,
        sortOrder: 1,
        isShow: 1,
      },
    ]
  },
  {
    id: 42,
    name: "会员管理",
    path: `/ums/member/manage`,
    sortOrder: 1,
    isShow: 1,
    icon: "DesktopOutlined",
    routes: [
      {
        id: 423,
        name: "会员列表",
        path: `/ums/member/manage/list`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 423,
        name: "会员地址",
        path: `/ums/member/manage/address`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 424,
        name: "会员等级",
        path: `/ums/member/manage/level`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 425,
        name: "会员日志",
        path: `/ums/member/manage/log`,
        sortOrder: 1,
        isShow: 1,
      }
    ]
  },
  {
    id: 5,
    name: "用户管理",
    path: `/user/manage`,
    isShow: 1,
    showChild: 1,
    icon: "CodeOutlined",
    sortOrder: 2,
    routes: [
      {
        id: 20,
        name: "部门列表",
        path: `/user/manage/dept`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 21,
        name: "用户列表",
        path: `/user/manage/list`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 22,
        name: "角色列表",
        path: `/user/manage/role`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 27,
        name: "岗位列表",
        path: `/user/manage/post`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 28,
        name: "租户列表",
        path: `/user/manage/tenant`,
        sortOrder: 1,
        isShow: 1,
      },
    ],
  },
  {
    id: 3,
    name: "日志管理",
    path: `/log/manage`,
    sortOrder: 1,
    isShow: 1,
    icon: "DesktopOutlined",
    routes: [
      {
        id: 31,
        name: "登录日志",
        path: `/log/manage/login`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 32,
        name: "操作日志",
        path: `/log/manage/operate`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 33,
        name: "系统日志",
        path: `/log/manage/system`,
        sortOrder: 1,
        isShow: 1,
      }
    ]
  },
  {
    id: 2,
    name: "系统管理",
    path: `/system/manage`,
    sortOrder: 1,
    isShow: 1,
    icon: "DesktopOutlined",
    routes: [
      {
        id: 23,
        name: "网关配置",
        path: `/system/manage/gateway`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 23,
        name: "菜单管理",
        path: `/system/manage/menu`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 24,
        name: "机构管理",
        path: `/system/manage/org`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 25,
        name: "字典管理",
        path: `/system/manage/dict`,
        sortOrder: 1,
        isShow: 1,
      },
      {
        id: 26,
        name: "参数管理",
        path: `/system/manage/param`,
        sortOrder: 1,
        isShow: 1,
      }
    ]
  },
  {
    id: 4,
    name: "运维管理",
    path: `/opt/manage`,
    isShow: 1,
    showChild: 1,
    icon: "CodeOutlined",
    sortOrder: 2,
    routes: [
      {
        id: 40,
        name: "缓存监控",
        path: `/opt/manage/redis`,
        isShow: 1,
        showChild: 0,
        sortOrder: 2,
      },
      {
        id: 41,
        name: "系统告警",
        path: `/opt/manage/alarm`,
        isShow: 1,
        showChild: 0,
        sortOrder: 2,
      },
      {
        id: 42,
        name: "定时任务",
        path: `/opt/manage/job`,
        isShow: 1,
        showChild: 0,
        sortOrder: 2,
      },
    ],
  },
]

export default menus
